package com.cloudfun.campusshare.device.protocol.response;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wangxiyuan
 * @description 所有泵相关状态信息
 * @createDate 2021/5/19 10:00
 **/
public class AllPumpStatus extends PumpInfo{
    private AllPumpStatus(){}

    private static List<PumpStatus> list = new ArrayList<>();

    private static AllPumpStatus allPumpStatus = new AllPumpStatus();

    public AllPumpStatus add(PumpStatus pumpStatus){
        list.add(pumpStatus);
        return allPumpStatus;
    }

    public static AllPumpStatus build(){
        return allPumpStatus;
    }

    public List<PumpStatus> getList() {
        return list;
    }

    public void clear(){
        list.clear();
    }

}
